//
//  JSTNewServer.h
//  KYKJPackDemo
//
//  Created by 01 on 17/6/1.
//  Copyright © 2017年 ???. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JSTNewServer : NSObject
/**
 获取验证码

 @param phoneNum 手机号
 @param successBlock 获取成功回调
 @param failureBlock 获取失败回调
 */
+ (void) requestPhoneModifyCode:(NSString *)phoneNum
                        success:(void(^)(NSDictionary *dataDict))successBlock
                        failure:(void(^)(NSString *failureStr))failureBlock;


/**
 登录接口

 @param phoneNum 注册登录参数
 @param modifyCode 验证码
 @param successBlock 登录成功回调
 @param failureBlock 登录失败回调
 */
+ (void) requestLoginWithPhoneNum:(NSString *)phoneNum
                       modifyCode:(NSString *)modifyCode
                          success:(void(^)(NSDictionary *dataDict))successBlock
                          failure:(void(^)(NSString *failureStr))failureBlock;
/**
 提交动态接口
 
 @param imageData 动态图片集合
 @param content 动态文本
 @param dataDic 回调成功
 @param errStr 回调错误提示
 */
+ (void) requestCommitDynamic:(NSArray *)imageData
                getContent:(NSString *)content
                   success:(void (^)(NSDictionary *dataDic))dataDic
                     error:(void(^)(NSString *errStr))errStr;

/**
 删除评论

 @param dynamicId 动态ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestDeleteComment:(NSString *)dynamicId
                      success:(void(^)(NSDictionary *dataDic))dataDic
                        error:(void(^)(NSString *errStr))errStr;

/**
 提交评论

 @param commentDic 动态ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestCommitComment:(NSDictionary *)commentDic
                      success:(void(^)(NSDictionary *dataDic))dataDic
                        error:(void(^)(NSString *errStr))errStr;

/**
 点赞取消赞

 @param dynamicId 动态ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestFabulous:(NSString *)dynamicId
                 success:(void(^)(NSDictionary *dataDic))dataDic
                   error:(void(^)(NSString *errStr))errStr;

/**
 删除动态

 @param dynamicId 动态ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestDeleteDynamic:(NSString *)dynamicId
                      success:(void(^)(NSDictionary *dataDic))dataDic
                        error:(void(^)(NSString *errStr))errStr;

/**
 所有动态

 @param requestDic 请求所需的 new（最新）、hot（最热）、page（页数）、pageSize（每页容量）集合
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestAllDynamic:(NSDictionary *)requestDic
                   success:(void(^)(NSDictionary *dataDic))dataDic
                     error:(void(^)(NSString *errStr))errStr;

/**
 我的动态

 @param requestDic 请求所需的 new（最新）、hot（最热）、page（页数）、pageSize（每页容量）集合
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestMyDynamic:(NSDictionary *)requestDic
                  success:(void(^)(NSDictionary *dataDic))dataDic
                    error:(void(^)(NSString *errStr))errStr;

/**
 动态详情

 @param dynamicId 动态ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestDynamicDetails:(NSString *)dynamicId
                       success:(void(^)(NSDictionary *dataDic))dataDic
                         error:(void(^)(NSString *errStr))errStr;

/**
 个人信息详情

 @param userId 用户ID
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestUserInfo:(NSString *)userId
                 success:(void(^)(NSDictionary *dataDic))dataDic
                   error:(void(^)(NSString *errStr))errStr;

/**
 编辑个人信息

 @param dic 请求所需的 name（昵称）sex（性别）birth_month（生日月份）birth_day（生日日期）sign（签名）icon（头像）集合
 @param dataDic 回执成功数据
 @param errStr 回执错误提示
 */
+ (void) requestEditUserInfo:(NSDictionary *)dic
                getImageData:(NSArray *)imageData
                     success:(void(^)(NSDictionary *dataDic))dataDic
                       error:(void(^)(NSString *errStr))errStr;


/**
 当前城市请求天气参数

 @param successsBlock 成功回调
 @param failureBlock 失败回调
 */
+ (void) requestLocalWeatherInfoSuccess:(void(^)(NSDictionary *dataDic))successsBlock
                                failure:(void(^)(NSString *errStr))failureBlock;

@end
